package com.Springdemo.enity;

import java.util.Date;

public class Fruit {
    private Integer id;

    private Double price;

    private String fruitname;

    private Date mfdate;

    public Fruit() {
    }

    public Fruit(Integer id, Double price, String fruitname, Date mfdate) {
        this.id = id;
        this.price = price;
        this.fruitname = fruitname;
        this.mfdate = mfdate;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public String getFruitname() {
        return fruitname;
    }

    public void setFruitname(String fruitname) {
        this.fruitname = fruitname;
    }

    public Date getMfdate() {
        return mfdate;
    }

    public void setMfdate(Date mfdate) {
        this.mfdate = mfdate;
    }

    @Override
    public String toString() {
        return "Fruit[" +
                "id=" + id +
                ", price=" + price +
                ", fruitname='" + fruitname + '\'' +
                ", mfdate=" + mfdate +
                ']';
    }
}
